const Layout = () => import("@/layout/index.vue");
import Home2 from "@iconify-icons/ri/home-office-line";
import Home3 from "@iconify-icons/ri/home-8-line";

export default {
  path: "/admin",
  name: "Admin",
  component: Layout,
  meta: {
    title: "系统管理",
    icon: Home2,
    auths: ["admin"]
  },
  children: [
    {
      path: "/admin/system",
      name: "System",
      component: Layout,
      redirect: "/admin/system/menu",
      meta: {
        title: "系统管理",
        icon: Home3,
        auths: ["system"]
      },
      children: [
        {
          path: "/admin/system/menu",
          name: "Menu",
          component: () => import("@/views/admin/system/menu/index.vue"),
          meta: {
            title: "菜单管理",
            auths: ["menu"]
          }
        },
        {
          path: "/admin/system/resource",
          name: "Resource",
          component: () => import("@/views/admin/system/resource/index.vue"),
          meta: {
            title: "资源管理",
            auths: ["resource"]
          }
        },
        {
          path: "/admin/system/dict",
          name: "Dict",
          component: () => import("@/views/admin/system/dict/index.vue"),
          meta: {
            title: "字典管理",
            auths: ["dict"]
          }
        },
        {
          path: "/admin/system/icon",
          name: "Icon",
          component: () => import("@/views/admin/system/icon/index.vue"),
          meta: {
            title: "图标管理",
            auths: ["icon"]
          }
        },
        {
          path: "/admin/system/shortcut",
          name: "Shortcut",
          component: () => import("@/views/admin/system/shortcut/index.vue"),
          meta: {
            title: "快捷菜单",
            auths: ["shortcut"]
          }
        },
        {
          path: "/admin/system/systemtree",
          name: "Systemtree",
          component: () => import("@/views/admin/system/systemtree/index.vue"),
          meta: {
            title: "配置管理",
            auths: ["systemtree"]
          }
        },
        {
          path: "/admin/system/area",
          name: "Area",
          component: () => import("@/views/admin/system/area/index.vue"),
          meta: {
            title: "区域管理",
            auths: ["area"]
          }
        }
      ]
    },
    {
      path: "/admin/org",
      name: "Org",
      component: Layout,
      meta: {
        title: "组织管理",
        icon: Home3,
        auths: ["org"]
      },
      children: [
        {
          path: "/admin/org/dept",
          name: "Dept",
          component: () => import("@/views/admin/org/dept/index.vue"),
          meta: {
            title: "组织架构",
            auths: ["dept"]
          }
        },
        {
          path: "/admin/org/sysuser",
          name: "SysUser",
          component: () => import("@/views/admin/org/sysuser/index.vue"),
          meta: {
            title: "系统用户",
            auths: ["sysuser"]
          }
        },
        {
          path: "/admin/org/job",
          name: "Job",
          component: () => import("@/views/admin/org/job/index.vue"),
          meta: {
            title: "岗位管理",
            auths: ["job"]
          }
        },
        {
          path: "/admin/org/role",
          name: "Role",
          component: () => import("@/views/admin/org/role/index.vue"),
          meta: {
            title: "角色管理",
            auths: ["role"]
          }
        }
      ]
    },
    {
      path: "/admin/config",
      name: "Config",
      component: Layout,
      meta: {
        title: "参数管理",
        icon: Home3,
        auths: ["config"]
      },
      children: [
        {
          path: "/admin/config/catelog",
          name: "ConfigCatelog",
          component: () => import("@/views/admin/config/catelog/index.vue"),
          meta: {
            title: "参数分类",
            auths: ["configcatelog"]
          }
        },
        {
          path: "/admin/config/form",
          name: "ConfigForm",
          component: () => import("@/views/admin/config/form/index.vue"),
          meta: {
            title: "参数配置表单",
            auths: ["configform"]
          }
        },
        {
          path: "/admin/config/data",
          name: "ConfigSetting",
          component: () => import("@/views/admin/config/config/index.vue"),
          meta: {
            title: "参数设置",
            auths: ["configsetting"]
          }
        },
        {
          path: "/admin/config/table",
          name: "ConfigTable",
          component: () => import("@/views/admin/config/config/table.vue"),
          meta: {
            title: "参数表",
            auths: ["configtable"]
          }
        }
      ]
    },
    {
      path: "/admin/log",
      name: "Log",
      component: Layout,
      meta: {
        title: "系统日志",
        icon: Home3,
        auths: ["log"]
      },
      children: [
        {
          path: "/admin/log/loginlog",
          name: "Loginlog",
          component: () => import("@/views/admin/log/loginlog/index.vue"),
          meta: {
            title: "登录日志",
            auths: ["loginlog"]
          }
        },
        {
          path: "/admin/log/syslog",
          name: "Syslog",
          component: () => import("@/views/admin/log/syslog/index.vue"),
          meta: {
            title: "操作日志",
            auths: ["syslog"]
          }
        }
      ]
    },
    {
      path: "/admin/cms",
      name: "Cms",
      component: Layout,
      meta: {
        title: "内容管理",
        icon: Home3,
        auths: ["cms"]
      },
      children: [
        {
          path: "/admin/cms/doc",
          name: "Doc",
          component: () => import("@/views/admin/cms/doc/index.vue"),
          meta: {
            title: "内容管理",
            auths: ["doc"]
          }
        },
        {
          path: "/admin/cms/file",
          name: "File",
          component: () => import("@/views/admin/cms/file/index.vue"),
          meta: {
            title: "文件管理",
            auths: ["file"]
          }
        },
        {
          path: "/admin/cms/filedownloadlog",
          name: "FileDownloadLog",
          component: () =>
            import("@/views/admin/cms/filedownloadlog/index.vue"),
          meta: {
            title: "文件下载日志",
            auths: ["filedownloadlog"]
          }
        }
      ]
    },
    {
      path: "/admin/message",
      name: "Message",
      component: Layout,
      meta: {
        title: "消息管理",
        icon: Home3,
        auths: ["message"]
      },
      children: [
        {
          path: "/admin/message/send",
          name: "MessageSend",
          component: () => import("@/views/admin/message/send/index.vue"),
          meta: {
            title: "发送消息",
            auths: ["messagesend"]
          }
        },
        {
          path: "/admin/message/receivebox",
          name: "ReceiveBox",
          component: () => import("@/views/admin/message/receivebox/index.vue"),
          meta: {
            title: "收信箱",
            auths: ["receivebox"]
          }
        },
        {
          path: "/admin/message/sendbox",
          name: "SendBox",
          component: () => import("@/views/admin/message/sendbox/index.vue"),
          meta: {
            title: "发信箱",
            auths: ["sendbox"]
          }
        },
        {
          path: "/admin/message/notice",
          name: "Notice",
          component: () => import("@/views/admin/message/notice/index.vue"),
          meta: {
            title: "公告管理",
            auths: ["notice"]
          }
        }
      ]
    }
  ]
} as RouteConfigsTable;
